package com.my.spvideo.dao.mysql.baidumv;

import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.my.spvideo.vo.Channel;



public interface ChannelMapper {
	
	List<String> selectChannels();
	
	/**
	 * 初次展示
	 * 
	 * @param startNum
	 * @param pageSize
	 * @return
	 */
	public List<Channel> getChannelList(@Param("startNum") int startNum, @Param("pageSize") int pageSize,
			@Param("channelId") String channelId,@Param("companyId")int companyId,
			@Param("businessLeader")String businessLeader,
			@Param("businessId")int businessId);
	
	List<Channel> getChannelNameList();
	
	/**
	 * 数量
	 * 
	 * @return
	 */
	public int getChannelListCount(@Param("channelId") String channelId,
			@Param("companyId")int companyId,@Param("businessLeader")String businessLeader,
			@Param("businessId")int businessId);

	/**
	 * 添加信息
	 * 
	 * @param cpInfo
	 * @return
	 */
	public int insertChannel(@Param("Channel") Channel channel);

	/**
	 * 删除信息
	 * 
	 * @param id
	 * @return
	 */
	public int deleteChannel(int id);
	/**
	 * 更新信息
	 * 
	 * @param cpInfo
	 * @return
	 */
	public int updateChannel(@Param("Channel") Channel channel);

	Channel selectChanne(int id);
	
	String selectApkUrl(@Param("apkDownloadId")String apkDownloadId);
	
	List<String> selectChannelsByCompanyId(@Param("companyIdList")List<Integer> companyIdList);
	
	List<String> selectChanneIdlList(@Param("businessId") int businessId,@Param("channelId") String channelId,@Param("companyIdList")List<Integer> companyIdList);
	
	public int updateChannelBusinessId(@Param("companyId") int companyId,@Param("businessId") int businessId);
	
	public int updateChannelList(@Param("Channel") Channel channel);
	
	List<Channel> selectChannelList(@Param("Channel") Channel channel);
	
}
